<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        /*
        箭头函数的返回值,可以直接卸载箭头后
            如果直接在箭头后设置独享字面量为返回值时,对象字面量必须用()扩起来    
    
        */
        const sum = (a,b) => a+b

        let result = sum(123,234) 
        
        const fn = () => ({name:"GPX"})

        result = fn()
        console.log(result)
    </script>
</head>
<body>
    
</body>
</html>